<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<h2>用户登录</h2>
{% for message in get_flashed_messages(category_filter='error') %}
    <p style="color: red">{{ message }}</p>
{% endfor %}
<form action="/login" method=post>
    <label style="display: block">
        登录名称:
        <input type="text" name="username">
    </label>
    <label style="display: block; margin: 10px 0">
        登录密码:
        <input type="password" name="password">
    </label>
    <button type="submit">登录</button>
</form>
</body>
</html>